<!--{block return}-->
<!--{if !empty($_G['cache']['plugin']['touclick']) && $_G['cache']['plugin']['touclick']['stats']}-->
<script type="text/javascript" language="javascript">
(function ()
{
    dom = [];
    dom.isReady = false;
    dom.isFunction = function (obj)
    {
        return Object.prototype.toString.call(obj) === "[object Function]";
    }
    dom.Ready = function (fn)
    {
        dom.initReady();
        if (dom.isFunction(fn))
        {
            if (dom.isReady)
            {
                fn();
            } else
            {
                dom.push(fn);
            }
        }
    }
    dom.fireReady = function ()
    {
        if (dom.isReady) return;
        dom.isReady = true;
        for (var i = 0, n = dom.length; i < n; i++)
        {
            var fn = dom[i];
            fn();
        }
        dom.length = 0;
    }
    dom.initReady = function ()
    {
        if (document.addEventListener)
        {
            document.addEventListener("DOMContentLoaded",
            function ()
            {
                document.removeEventListener("DOMContentLoaded", arguments.callee, false);
                dom.fireReady();
            },
            false);
        } else
        {
            if (document.getElementById)
            {
                document.write("<script id=\"ie-domReady\" defer='defer'src=\"//:\"><\/script>");
                document.getElementById("ie-domReady").onreadystatechange = function ()
                {
                    if (this.readyState === "complete")
                    {
                        dom.fireReady();
                        this.onreadystatechange = null;
                        this.parentNode.removeChild(this)
                    }
                };
            }
        }
    }
   
    var touclick = window['TouClick'] || {};
    touclick.Ready = dom.Ready;
    window['TouClick'] = touclick;
})(window);
<!--{if (((in_array("thread",(array)unserialize($_G['cache']['plugin']['touclick']['enable']))) && $_GET[action] == 'newthread') || ((in_array("reply",(array)unserialize($_G['cache']['plugin']['touclick']['enable']))) && $_GET[action] == 'reply')) && (in_array($_G['groupid'],(array)unserialize($_G['cache']['plugin']['touclick']['gids'])))  }-->
function touclickpost() {
    if (document.getElementById("postsubmit")) {
        var subt = document.getElementById("postsubmit");
        var Father = subt.parentNode;
        var newButton = document.createElement("Button");
        newButton.setAttribute("type", "button");
        newButton.onclick = function () {
            touclickFire('post', 1)
        };
        newButton.className = subt.className;
		newButton.style.width = subt.style.width;
		newButton.style.height = subt.style.height;
		subt.style.display = "none";
        newButton.innerHTML = subt.innerHTML;
        Father.insertBefore(newButton, subt.nextSibling);
		
		var newInput = document.createElement("input");
		newInput.id = "touclickPOSTi";
		newInput.type = "hidden";
		newInput.name = "touclickPOSTi";
		newInput.value = "ok";
		
		Father.appendChild(newInput);
    }
}
TouClick.Ready(touclickpost);
<!--{/if}-->
<!--{if ((in_array("reply",(array)unserialize($_G['cache']['plugin']['touclick']['enable']))) && $_GET[mod] == 'viewthread' && (in_array($_G['groupid'],(array)unserialize($_G['cache']['plugin']['touclick']['gids'])))  )}-->
function touclickfspostr() {
    if (document.getElementById("fastpostsubmit")) {
        var subt = document.getElementById("fastpostsubmit");
        var Father = subt.parentNode;
        var newButton = document.createElement("Button");
        newButton.setAttribute("type", "button");
        newButton.onclick = function () {
            touclickFire('viewthreadFP', 2)
        };
        newButton.className = subt.className;
		newButton.style.width = subt.style.width;
		newButton.style.height = subt.style.height;
		subt.style.display = "none";
        newButton.innerHTML = subt.innerHTML;
        Father.insertBefore(newButton, subt)
    }
}
TouClick.Ready(touclickfspostr);
<!--{/if}-->
<!--{if ((in_array("thread",(array)unserialize($_G['cache']['plugin']['touclick']['enable']))) && $_GET[mod] == 'forumdisplay' && (in_array($_G['groupid'],(array)unserialize($_G['cache']['plugin']['touclick']['gids'])))  )}-->
function touclickfspostn() {
    if (document.getElementById("fastpostsubmit")) {
        var subt = document.getElementById("fastpostsubmit");
        var Father = subt.parentNode;
        var newButton = document.createElement("Button");
        newButton.setAttribute("type", "button");
        newButton.onclick = function () {
            touclickFire('newFD', 1)
        };
        newButton.className = subt.className;
		newButton.style.width = subt.style.width;
		newButton.style.height = subt.style.height;
		subt.style.display = "none";
        newButton.innerHTML = subt.innerHTML;
        Father.insertBefore(newButton, subt)
    }
}
TouClick.Ready(touclickfspostn);
<!--{/if}-->
<!--{if ((in_array("login",(array)unserialize($_G['cache']['plugin']['touclick']['enable']))) && !$_G['uid'] )}-->
function touclickls() {
    if (document.getElementById("lsform")) {
        var buttons = document.getElementById("lsform").getElementsByTagName("button");
        for (var i = 0; i < buttons.length; i++) {
            if (buttons[i].getAttribute("type") == "submit") {
                var subt = buttons[i];
                var Father = subt.parentNode;
                
                var newButton = document.createElement("Button");
                newButton.setAttribute("type", "button");
                newButton.onclick = function () {
                    touclickFire('hlogin', 4)
                };
                newButton.className = subt.className;
                newButton.style.width = subt.style.width;
				newButton.style.height = subt.style.height;
				subt.style.display = "none";
                newButton.innerHTML = subt.innerHTML;
                Father.insertBefore(newButton, subt);
                i = buttons.length
            }
        }
    }
}
TouClick.Ready(touclickls);
<!--{/if}-->
<!--{if ((in_array("article",(array)unserialize($_G['cache']['plugin']['touclick']['enable']))) && $_GET[mod] == 'portalcp' && (in_array($_G['groupid'],(array)unserialize($_G['cache']['plugin']['touclick']['gids'])))  )}-->
function touclickart() {
    if (document.getElementById("issuance")) {
        var subt = document.getElementById("issuance");
        var Father = subt.parentNode;
        var newButton = document.createElement("Button");
        newButton.setAttribute("type", "button");
        newButton.onclick = function () {
            touclickFire('article', 1)
        };
        newButton.className = subt.className;
		newButton.style.width = subt.style.width;
		newButton.style.height = subt.style.height;
		subt.style.display = "none";
        newButton.innerHTML = subt.innerHTML;
        Father.insertBefore(newButton, subt)
    }
}
TouClick.Ready(touclickart);
<!--{/if}-->
function trim(str){return str.replace(/(^\s*)|(\s*$)/g, "");}
var touclickb = trim("{$_G['cache']['plugin']['touclick']['sitekey']}");
var touclick_clientname = trim("{$_G['username']}");
var touclick_clientid = trim("{$_G['uid']}");

</script>
<script type="text/javascript" language="javascript" charset="UTF-8" src="http://js.touclick.com/js.touclick?b={$_G['cache']['plugin']['touclick']['sitekey']}&v=v2-1-2&pf=discuz"></script>
<!--{/if}-->
<!--{/block}-->